<?=form_open(uri_string())?>
<table class="form">
    <tr style="display:none;">
        <td class="label"><?=lang('news_category');?></td>
        <td>
        <select name="cat_id" id="cat_id" class="w350">
            <option value="0">Chưa chọn</option>
            <?php echo $option_category ?>
        </select></td>
    </tr>
    <tr>
        <td width="150" class="required label" style="width: 150px;"><?=lang('news_name');?></td>
        <td><input type="text" name="title_vn" id="title_vn" class="w710" value="<?=htmlspecialchars($rs->title_vn)?>"></td>
    </tr>
    <tr>
        <td width="150" class="required label" style="width: 150px;"><?=lang('news_name');?>(t.anh)</td>
        <td><input type="text" name="title_en" id="title_en" class="w710" value="<?=htmlspecialchars($rs->title_en)?>"></td>
    </tr>
    <tr>
        <td class="label"><?=lang('news_image');?></td>
        <td><a class="lib_img" href="javascript:imgLib.openLib({width:150,height:100,return_tag:'lb_image',action:'imgcrop'});"></a>
        <div class="lb_image">
            <input type="hidden" name="lb_image" id="lb_image" value="" />
            <? if(!empty($rs->lb_image)){?>
            <a href="javascript:imgLib.openLib({dir_img:'news/<?=$rs->lb_image?>',width:150,height:100,method:'imgcrop',return_tag:'lb_image',action:'imgcrop'});">
                <img src="<?=base_url_site()?>uploads/news/<?=$rs->lb_image?>" width="120px" />
            </a>
            <? } ?>
        </div></td>
    </tr>
    <tr>
        <td valign="top" class="required label">Summary</td>
        <td><textarea class="w710" name="summary_vn" id="summary_vn"><?=$rs->summary_vn;?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="required label">Summary(t.anh)</td>
        <td><textarea class="w710" name="summary_en" id="summary_en"><?=$rs->summary_en;?></textarea></td>
    </tr>
    <tr>
        <td  class="label"><?=lang('news_content');?></td>
        <td><textarea class="wysiwyg"  name="content_vn" id="content_vn"><?=$rs->content_vn;?></textarea></td>
    </tr>
    <tr>
        <td  class="label"><?=lang('news_content');?>(t.anh)</td>
        <td><textarea class="wysiwyg"  name="content_en" id="content_en"><?=$rs->content_en;?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label"><?=lang('news_keywords');?></td>
        <td><textarea class="w710" name="keyword_vn" id="keyword_vn"><?=$rs->keyword_vn;?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label"><?=lang('news_keywords');?>(t.anh)</td>
        <td><textarea class="w710" name="keyword_en" id="keyword_en"><?=$rs->keyword_en;?></textarea></td>
    </tr>
    <!--<tr>
        <td width="150" class="required label"><?=lang('news_source');?></td>
        <td><input type="text" name="source" id="source" class="w710" value="<?=$rs->source;?>"></td>
    </tr>-->
    <tr>
        <td class="label"><?=lang('active_deactive');?></td>
        <td><input type="checkbox" name="bl_active" id="bl_active" <?php if($rs->bl_active==1) echo 'checked'; ?> value="1" />
        <!--<span style="padding:5px;">Home : <input type="checkbox" name="is_home" id="is_home" <?php if($rs->is_home==1) echo 'checked'; ?> value="1" /></span> 
        <span style="padding:5px;">Tin hot : <input type="checkbox" name="is_hot" id="is_hot" <?php if($rs->is_hot==1) echo 'checked'; ?> value="1" /></span>-->
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center"><input type="submit" name="bt_submit" value="" class="capnhat"></td>
    </tr>
</table>
<?=form_close()?>
<script language="javascript">
	mkselected('cat_id','<?=$rs->cat_id?>');
	$('#keyword_vn').tagsInput({width:'710px'});
	$('#keyword_en').tagsInput({width:'710px'});
</script>